package com.uci.scheduleshare.calendar;

import java.io.Serializable;

/**
 * CS 190 Spring 2012
 * Event.java
 * An event object that holds all the information
 * pertaining to an individual event
 * @author Patrick Hsu, Lauren Ko, Pomi Park
 *
 */
public class Event implements Serializable {

	private static final long serialVersionUID = 1L;
	private int startDay;
	private int startMin;
	private int endDay;
	private int endMin;

	private String eventName;

	/**
	 * Event constructor
	 */
	public Event(String eventName, int startDay,
			int startMin, int endDay, int endMin) {
		this.startDay = startDay;
		this.startMin = startMin;
		this.endDay = endDay;
		this.endMin = endMin;
		this.eventName = eventName;
	}
	
	/**
	 * Get the start day
	 * @return start day of the event as an int
	 */
	public int getStartDay() {
		return startDay;
	}
	
	/**
	 * Get the start minute 
	 * @return the start minute of the event as an int
	 */
	public int getStartMin() {
		return startMin;
	}
	
	/**
	 * Get the end day 
	 * @return the end day of the event as an int
	 */
	public int getEndDay() {
		return endDay;
	}
	
	/**
	 * Get the end minute
	 * @return the end minute of the event as an int
	 */
	public int getEndMin() {
		return endMin;
	}

	/**
	 * Get the event name
	 * @return the event name 
	 */
	public String getEventName() {
		return eventName;
	}
}
